import path from "node:path";

export const url = process.env.VITE_DEV_SERVER_URL;
export const isDev = process.env.NODE_ENV === "development";
export const DIST_ELECTRON = path.join(__dirname, "../");
export const DIST = path.join(DIST_ELECTRON, "../dist-electron");
export const preload = path.join(__dirname, "../preload/index.js");
export const PUBLIC = url
  ? path.join(DIST_ELECTRON, "../public")
  : process.env.DIST;
export const ICON = url
  ? path.join(PUBLIC!, "./imgs/logo/favicon.ico")
  : path.join(DIST, "./imgs/logo/favicon.ico");
export const PEER_FILES = path.join(DIST_ELECTRON, `../Peer Files`);
